<template>
	<view class="establish">
		<view class="space" v-if="teamAll.fx_nickname">
			<view style="align-items: center;" :style="{width:type=='add'?'80%':'100%'}">
				<text>分享人</text>
				<image :src="teamAll.fx_avatar" mode=""></image>
				<text class="line">{{teamAll.fx_nickname}}</text>
			</view>
			<view  @click="addTeam(teamAll.fx_team_page)" v-if="add">加入该团</view>
	    </view>
		<view class="space">
			<view style="align-items: center;">
				<text>创建人</text>
				<image :src="teamAll.create_avatar" mode=""></image>
				<text class="line">{{teamAll.create_nickname}}</text>
			</view>
		</view>
		<view class="space">
			<view style="align-items: flex-start;">
				<text>说   明</text>
				<text style="width: 88%;">{{teamAll.des}}</text>
			</view>
		</view>
	</view>
</template>

<script setup lang="ts">
	const props = defineProps({
	  type: { type: String },
	  teamAll:{ type: Object },
	  add:{ type: Boolean },
	});
	function addTeam(page){
		uni.navigateTo({
			url: '/'+page
		});
	}
</script>
<style scoped lang="less">
	@import url('../groupBenefits/less/establish.less');
</style>